package Java8_26;

public class Keji extends Plane1 {
    private int seat;
    public void takeOff(Pilot p) {
        System.out.println(p.getName() + "起飞");
    }
    public void speed(Pilot p) {
        System.out.println(p.getName() + "加速");
    }
    public void land(Pilot p) {
        System.out.println(p.getName() + "降落");
    }
    public Keji(String weight, String height, int seat) {
        super(weight, height);
        this.seat = seat;
    }

    public int getSeat() {
        return seat;
    }

    public void setSeat(int seat) {
        this.seat = seat;
    }
}
